<html>
    <head></head>
    <body>
        <?php
foreach($data['page']['main_category_data'] as $key => $value){

?>
<fieldset id="current_module">
<label><?php echo $value['main_category_title'];?> | <?php echo $value['module_title'];?></label>
<form method="post" action="<?php echo EDIT_MAIN_CATEGORY_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="main_category_name" value="<?php echo $value['main_category_name'];?>"/>
               	<input name="edit_main_category" id="edit_module" type="submit" 
                       value="<?php echo EDIT_CURRENT_MAIN_CATEGORY;?>">
 </form>
<form method="post" action="<?php echo DELETE_MAIN_CATEGORY_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="main_category_name" value="<?php echo $value['main_category_name'];?>"/>
               	<input name="delete_main_category" id="delete_main_category" type="submit" 
                       value="<?php echo DELETE_CURRENT_MAIN_CATEGORY;?>">
 </form>

</fieldset>
<?php
}
?>
        <p><a href="<?php echo ADD_MAIN_CATEGORY_LINK;?>" title="<?php echo ADD_MAIN_CATEGORY_DESCRIPTION;?>" alt="<?php echo ADD_MAIN_CATEGORY_DESCRIPTION;?>">
                <?php echo ADD_MAIN_CATEGORY_DESCRIPTION;?>
            </a></p>
    </body>
</html>